package com.tuo51.core.domain.ppp;

import com.tuo51.foudation.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "p_product")
@Data
@EqualsAndHashCode(callSuper = true)
public class Product extends Domain {

    @Column(columnDefinition="varchar(50) COMMENT '名称'")
    private String name;

    @Column(columnDefinition = "varchar(50) COMMENT 'bundle_id/appid'")
    private String appid;

    @Column(columnDefinition="varchar(50) COMMENT '描述'")
    private String description;

    @Column(columnDefinition="int(1) default 1 COMMENT '排序'")
    private Integer sort;

    @Column(columnDefinition = "varchar(32) COMMENT '所属平台'")
    private String platformId;

    @Column(columnDefinition = " bit DEFAULT 0 COMMENT '默认可见，不需要购买 0：否，1是' ")
    private Boolean defaultAccessable = false;

    @Column(columnDefinition = " bit DEFAULT 0 COMMENT '公开可见 0：否，1是' ")
    private Boolean hidden = false;

}
